<?php
/**
 * Created by PhpStorm.
 * User: C。
 * Date: 2019/8/13
 * Time: 9:04
 */
namespace app\home\controller;

use app\common\model\ActionForm as ActionFormModel;

/**
 * 活动控制器
 * Class Activeapply
 * @package app\home\controller
 */
class Actionform extends Base
{
    /**
     * [find  获取一条]
     * @param
     * @return json
     * @author [C。]
     */
    public function find()
    {
        $param = input('param.');
        $model = new ActionFormModel;
        try{
            $data = $model->findData($param['id'],'aid','form');
            $data['form'] = unserialize($data['form']);
        }catch(\Exception $e){
            systembug($e->getMessage(),2,'home/Actionform/find');
            return admin_json(-1, '获取失败'.$e->getMessage());
        }
        return admin_json(1, '获取成功',$data);
    }
}